package com.snail.mobile.sim.oss.videoinfo.model;
// Generated 2015-8-28 10:15:33 by Hibernate Tools 3.1.0.beta4

import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="tbl_video_info_oss"
 *     
 */

public class TblVideoInfoOss extends com.sungrid.seine.oss.framework.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer nid;
    private Integer norder;
    private String svideoPath;
    private String sfileName;
    private Timestamp dcreateTime;
    private Timestamp dupdateTime;
    private String sdescription;


    // Constructors

    /** default constructor */
    public TblVideoInfoOss() {
    }

	/** minimal constructor */
    public TblVideoInfoOss(String svideoPath, String sfileName) {
        this.svideoPath = svideoPath;
        this.sfileName = sfileName;
    }
    
    /** full constructor */
    public TblVideoInfoOss(Integer norder, String svideoPath, String sfileName, Timestamp dcreateTime, Timestamp dupdateTime, String sdescription) {
        this.norder = norder;
        this.svideoPath = svideoPath;
        this.sfileName = sfileName;
        this.dcreateTime = dcreateTime;
        this.dupdateTime = dupdateTime;
        this.sdescription = sdescription;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="N_ID"
     *         
     */

    public Integer getNid() {
        return this.nid;
    }
    
    public void setNid(Integer nid) {
        this.nid = nid;
    }
    /**       
     *      *            @hibernate.property
     *             column="N_ORDER"
     *             length="11"
     *         
     */

    public Integer getNorder() {
        return this.norder;
    }
    
    public void setNorder(Integer norder) {
        this.norder = norder;
    }
    /**       
     *      *            @hibernate.property
     *             column="S_VIDEO_PATH"
     *             length="255"
     *             not-null="true"
     *         
     */

    public String getSvideoPath() {
        return this.svideoPath;
    }
    
    public void setSvideoPath(String svideoPath) {
        this.svideoPath = svideoPath;
    }
    /**       
     *      *            @hibernate.property
     *             column="S_FILE_NAME"
     *             length="255"
     *             not-null="true"
     *         
     */

    public String getSfileName() {
        return this.sfileName;
    }
    
    public void setSfileName(String sfileName) {
        this.sfileName = sfileName;
    }
    /**       
     *      *            @hibernate.property
     *             column="D_CREATE_TIME"
     *             length="19"
     *         
     */

    public Timestamp getDcreateTime() {
        return this.dcreateTime;
    }
    
    public void setDcreateTime(Timestamp dcreateTime) {
        this.dcreateTime = dcreateTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="D_UPDATE_TIME"
     *             length="19"
     *         
     */

    public Timestamp getDupdateTime() {
        return this.dupdateTime;
    }
    
    public void setDupdateTime(Timestamp dupdateTime) {
        this.dupdateTime = dupdateTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="S_DESCRIPTION"
     *             length="255"
     *         
     */

    public String getSdescription() {
        return this.sdescription;
    }
    
    public void setSdescription(String sdescription) {
        this.sdescription = sdescription;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("norder").append("='").append(getNorder()).append("' ");			
      buffer.append("svideoPath").append("='").append(getSvideoPath()).append("' ");			
      buffer.append("sfileName").append("='").append(getSfileName()).append("' ");			
      buffer.append("dcreateTime").append("='").append(getDcreateTime()).append("' ");			
      buffer.append("dupdateTime").append("='").append(getDupdateTime()).append("' ");			
      buffer.append("sdescription").append("='").append(getSdescription()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof TblVideoInfoOss) ) return false;
		 TblVideoInfoOss castOther = ( TblVideoInfoOss ) other; 
         
		 return ( (this.getNid()==castOther.getNid()) || ( this.getNid()!=null && castOther.getNid()!=null && this.getNid().equals(castOther.getNid()) ) )
 && ( (this.getNorder()==castOther.getNorder()) || ( this.getNorder()!=null && castOther.getNorder()!=null && this.getNorder().equals(castOther.getNorder()) ) )
 && ( (this.getSvideoPath()==castOther.getSvideoPath()) || ( this.getSvideoPath()!=null && castOther.getSvideoPath()!=null && this.getSvideoPath().equals(castOther.getSvideoPath()) ) )
 && ( (this.getSfileName()==castOther.getSfileName()) || ( this.getSfileName()!=null && castOther.getSfileName()!=null && this.getSfileName().equals(castOther.getSfileName()) ) )
 && ( (this.getDcreateTime()==castOther.getDcreateTime()) || ( this.getDcreateTime()!=null && castOther.getDcreateTime()!=null && this.getDcreateTime().equals(castOther.getDcreateTime()) ) )
 && ( (this.getDupdateTime()==castOther.getDupdateTime()) || ( this.getDupdateTime()!=null && castOther.getDupdateTime()!=null && this.getDupdateTime().equals(castOther.getDupdateTime()) ) )
 && ( (this.getSdescription()==castOther.getSdescription()) || ( this.getSdescription()!=null && castOther.getSdescription()!=null && this.getSdescription().equals(castOther.getSdescription()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getNid() == null ? 0 : this.getNid().hashCode() );
         result = 37 * result + ( getNorder() == null ? 0 : this.getNorder().hashCode() );
         result = 37 * result + ( getSvideoPath() == null ? 0 : this.getSvideoPath().hashCode() );
         result = 37 * result + ( getSfileName() == null ? 0 : this.getSfileName().hashCode() );
         result = 37 * result + ( getDcreateTime() == null ? 0 : this.getDcreateTime().hashCode() );
         result = 37 * result + ( getDupdateTime() == null ? 0 : this.getDupdateTime().hashCode() );
         result = 37 * result + ( getSdescription() == null ? 0 : this.getSdescription().hashCode() );
         return result;
   }   





}
